/**
 * 加入课题组（交款）记录
 * Created by icyhy on 2017/5/22.
 */
var mongoose = require("mongoose");
var clanChargeSchema = new mongoose.Schema({
  clanId: String,//部落id
  userId: String,//用户id
  chargeAmount: Number,//钱数
  created: {
    type: Date,
    default: Date.now
  },
  used: {//是否启用
    type: Boolean,
    default: true
  }
});

var clanChargeModel = db.model("clanCharge", clanChargeSchema);
module.exports = clanChargeModel;
